#!/bin/bash
# 清空 node.log
echo '' > node.log
# 开启监听
nohup node ./free-nat.js >> node.log 2>&1 &

# 清空 ps.log
echo '' > ps.log
# 保存监听进程id
ps -aux | grep free-nat >> ps.log

# 清空nat.log
echo '' > nat.log
# 运行natapp
nohup ./natapp -config=./config.ini >> nat.log 2>&1 &
# 保存natapp进程id
ps -aux | grep natapp >> ps.log